#ifndef _I2C_DRIVER_H_
#define _I2C_DRIVER_H_
#include<stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include<linux/i2c.h>
#include<linux/i2c-dev.h>
#include<unistd.h>
#include<sys/ioctl.h>
#include<string.h>
#include<stdlib.h>
#include<fcntl.h>

extern bool writeI2C(int fd, unsigned char dev_addr, unsigned char reg_addr, unsigned char *reg_value,int count);
extern bool readI2C(int fd, unsigned char dev_addr, unsigned char reg_addr,unsigned char *val,int count);

#endif /* _I2C_DRIVER_H_ */
